.design-container {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.container-edit-icon {
  position: absolute;
  text-align: center;
  display: inline-block;
  line-height: 1;

  right: 0;
  width: 16px;
  height: 16px;
  transform: translate(calc(100% + 5px), 0px);
}

.container-move-icon {
  position: absolute;
  text-align: center;

  display: inline-block;
  line-height: 1;

  right: 0;
  width: 16px;
  height: 16px;
  transform: translate(calc(100% + 5px), 18px);
}

.table-more-icon_popover {
  position: absolute;
  text-align: center;

  display: inline-block;
  line-height: 1;
  top: 0;
  left: calc(100% + 7px);
  width: 16px;
  height: 16px;
}

.table-more-icon {
  text-align: center;

  display: inline-block;
  line-height: 1;

  width: 16px;
  height: 16px;
}

.table_header_setting {
  padding: 5px 9px 5px 5px;
  background: white;
}

.container_over {
  z-index: 1;
  outline: 4px solid var(--drag-h-color);
}

.ruleHighlight {
  background: var(--drag-h-color);
  opacity: 0.2;
}

.my-element-wrapper {
  will-change: transform !important;
  position: absolute;
  box-sizing: border-box;
  //z-index: 9999;

  &:before {
    //z-index: -1;
    pointer-events: none;
    position: absolute;
    content: '';
    box-sizing: border-box;
    width: 100%;
    height: 100%;
  }
}

.design-activate {
  //z-index: 1;
  cursor: move;

  &:before {
    border: dashed 1px var(--drag-h-color);
  }
}

.design-inactive {

  &:before {
    border: dashed 1px var(--dnb-highlight-color);
  }
}

.design-activate-edit {
  //z-index: 1;

  &:before {
    border: dashed 1px var(--drag-edit-border-color);
  }
}

.design-activate-cut-ing {
  opacity: 0.625 !important;
}


.desgin-remove {
  padding: 0;
  appearance: none;
  border: 0;
  //color: black;
  line-height: 16px;
  font-weight: bold;
  color: red;
}

.my-table-resize {
  width: 9px;
  height: 100%;
  position: absolute;
  top: 0;
  cursor: col-resize;

  &:before {
    position: absolute;
    top: inherit;
    left: 4px;
    background: transparent !important;
    content: ' ';
    width: 1px;
    height: 100%;
  }

  &:hover::before {
    box-shadow: -1px 0 0 0 red, 1px 0 0 0 red !important;
    background-color: red !important;
  }
}

.my-table-row-resize {
  width: 100%;
  height: 9px;
  position: absolute;
  left: 0;
  cursor: col-resize;

  &:before {
    position: absolute;
    left: inherit;
    top: 4px;
    background: transparent !important;
    content: ' ';
    width: 100%;
    height: 1px;
  }

  &:hover::before {
    box-shadow: -1px 0 0 0 red, 1px 0 0 0 red !important;
    background-color: red !important;
  }
}

.my-table-highlight-column {
  position: absolute;
  top: 0;
  border: 2px solid var(--drag-h-color);
  box-sizing: border-box;
}

.my-table-highlight-sort {
  position: absolute;
  top: 0;
  left: 20px;
  width: 3px;
  height: 100%;
  background: #0ec300 !important;
}

.my-table-clone-drag {
  position: absolute;
  cursor: move;
}

.my-table-control-head-point {
  position: absolute;
  cursor: move;
  top: -10px;
  width: 20px;
  font-size: 14px !important;
  height: 15px;
  line-height: 15px;
  text-align: center;
  visibility: hidden;
  border-radius: 3px;
  border: 1px black dashed;
  background: white !important;
  z-index: 999999;
}

.my-table-control-head-col-point {
  position: absolute;
  cursor: move;
  left: -10px;
  width: 15px;
  font-size: 14px !important;
  height: 20px;
  line-height: 20px;
  text-align: center;
  visibility: hidden;
  border-radius: 3px;
  border: 1px black dashed;
  background: white !important;
  z-index: 999999;
}

.my-table-control-head-point-active {
  visibility: visible;
  //background: green !important;
}

.my-table-statistics-row-remove {
  width: 20px;
  height: 20px;
  right: -30px;
  position: absolute;
  z-index: 999999;
}

.image-crop-dialog {
  user-select: none;
}

.choose-image-type-dialog {
  border-radius: 8px !important;
  overflow: hidden;

  .el-dialog__header {
    display: none;
  }

  .el-dialog__body {
    padding: 0 !important;
  }

  .choose-image-type-dialog-header {
    height: 51px;
    padding: 0 37px;
    background: white;
    box-sizing: border-box;
    border-bottom: 1px solid #e9e9e9;
    align-items: center;
    justify-content: space-between;
    user-select: none;

    .choose-image-type-dialog-header_tab {
      display: flex;
      width: 100%;

      .setting-panel-header-close {
        width: 24px;
      }
    }

  }

  .choose-image-localFile-panel {
    width: 520px;
    height: 117px;
    user-select: none;
    align-items: center;
    justify-content: center;

    .choose-image-localFile-btn {
      width: 250px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      border-radius: 5px;
      color: white;
      background: var(--drag-h-color);
      font-weight: 600;
    }
  }

  .choose-image-url-panel {
    width: 490px;
    height: 117px;
    user-select: none;
    align-items: center;
    justify-content: center;

    .choose-image-url-input {
      width: 250px;
      margin-bottom: 15px;
    }

    .choose-image-url-btn {
      width: 250px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      border-radius: 5px;
      color: white;
      background: var(--drag-h-color);
      font-weight: 600;
    }
  }
}

%design-auxiliary-line {
  position: absolute;
  will-change: transform;
  left: 0;
  top: 0;

  &:hover .design-auxiliary-line-remove {
    visibility: visible;
  }

  .design-auxiliary-line-remove {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
    visibility: hidden;
    color: red;

    &:hover {
      visibility: visible;
    }
  }
}

@mixin mixin-design-auxiliary-line($direction) {
  position: absolute;
  @if $direction == vertical {
    left: -4px;
    top: 25px;
    width: 7px;
    height: 30px;
  } @else {
    left: 25px;
    top: -4px;
    width: 30px;
    height: 7px;
  }

  &:before {
    border-radius: 10px;
    position: absolute;
    content: ' ';
    background: gold !important;

    @if $direction == vertical {
      left: 2px;
      top: 0;
      width: 3px;
      height: 100%;
    } @else {
      top: 2px;
      left: 0;
      width: 100%;
      height: 3px;
    }
  }
}

.design-auxiliary-line-hidden {
  visibility: hidden;
}

.design-auxiliary-line-v {
  @extend %design-auxiliary-line;
  border-left: 1px black dashed;
  height: 100%;

  .design-auxiliary-line-control {
    @include mixin-design-auxiliary-line(vertical)
  }

  .design-auxiliary-line-remove {
    left: -8px;
    top: 10px;
  }
}

.design-auxiliary-line-h {
  @extend %design-auxiliary-line;
  border-top: 1px black dashed;
  width: 100%;

  .design-auxiliary-line-control {
    @include mixin-design-auxiliary-line(horizontal)
  }

  .design-auxiliary-line-remove {
    left: 10px;
    top: -8px;
  }

}

.my-tree-list {
  .my-tree-list-item_wrapper {
    .my-tree-list-item {
      display: flex;
    }

    .my-tree-list-child {
      margin-left: 30px;
    }

  }
}
